<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
	<title>配置</title>
	
	<script>
		$(document).ready(function() {
			//聚焦第一个输入框
			//为inputForm注册validate函数
			$("#inputForm").validate();
		});
	</script>
</head>

<body>
<section class="content">
<div class="row">
		<div class="col-md-12">

			<!-- Primary box -->
			<div class="box box-solid box-primary">
				<div class="box-header">
					<i class="fa fa-edit"></i>
					<h3 class="box-title">配置</h3>
					<div class="box-tools pull-right">
						<button class="btn btn-primary btn-sm" data-widget="collapse">
							<i class="fa fa-minus"></i>
						</button>
					</div>
				</div>
				<div class="box-body">
	<form id="inputForm" action="${ctx}/performanceFee/create" method="post" class="form-horizontal">
		<fieldset>
			<div class="form-group">
				<label for="performance_optype" class="col-sm-3 control-label">工序:</label>
				<div class="col-sm-6">
					<select id="performance_optype" name="optype" class="form-control">
						<option value="1">卸货</option>
						<option value="2">上架</option>
						<option value="3">打单</option>
						<option value="4">配单</option>
						<option value="5">拣货</option>
						<option value="6">包装</option>
						<option value="7">发货</option>
					</select>
				</div>
			</div>	
			<div class="form-group">
				<label for="_warehouseCode" class="col-sm-3 control-label">作业仓库:</label>
				<div class="col-sm-6">
					<select class="form-control"  id="_warehouseCode"  name="warehouseCode"  class="input-medium">
							<c:forEach items="${warehouseList}" var="w">
							   <option value="${w.groupCode}" 
							   <c:if test="${warehouseCode eq w.groupCode }">selected=selected</c:if>
							   >${w.groupName}</option>
						   </c:forEach>
						 </select> 
				</div>
			</div>	
			<div class="form-group">
				<label for="_customerCode" class="col-sm-3 control-label">客户:</label>
				<div class="col-sm-6">
					<select class="form-control"  id="_customerCode"  name="customerCode"  class="input-medium">
							<c:forEach items="${customerList}" var="customer">
								<option value="${customer.customerCode}">${customer.customerName}</option>
							</c:forEach>
						 </select> 
				</div>
			</div>	
			<div class="form-group">
				<label for="performanceFee_fee" class="col-sm-3 control-label">单位费用:</label>
				<div class="col-sm-6">
					<input type="text" id="performanceFee_fee" name="fee"  value="${performanceFee.fee}" class="form-control input-large required" minlength="1"/>
				</div>
			</div>	
			
			<div class="modal-footer bg-gray">
				<input id="submit_btn" class="btn btn-primary" type="submit" value="提交"/>&nbsp;	
				<input id="cancel_btn" class="btn" type="button" value="返回" onclick="history.back()"/>
			</div>
		</fieldset>
	</form>
	</div>
	</div>
	</div>
	</div>
	</section>
</body>
</html>
